package com.edu.service;

import com.edu.bean.Book;

import java.util.List;

/**
 * @Author 75099637@qq.com
 * @PackageName SpringMybatis
 * @Package com.springMybatis.service
 * @Date 2023/11/3 8:52
 * @Version 1.0
 */
public interface BookService {
    int addBook(Book book);

    int delBook(int bookId);

    List<Book> getBook(Book book); // 根据bookname bookType bookWriter 做多条件查询

    List<Book> getAllBook(); //  查询所有数据

    int updateBook(Book book); // 根据书本id修改书的信息
    Book getBookById(int bookId);
    List<Book> getBookByPage(int pageNum, int pageSize);
    int getPageCount(int pageSize);
}
